﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using DevLib.SuperTool;

/** 
 ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** **
 * Description: 
 * Author: Heller (HellerSong@outlook.com)
 * CreationTime: 3/24/2015 10:36:34 PM
 ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** 
 **/
namespace UnitTest.TestSuperTool
{
	[TestClass]
	public class TestDevRegex
	{
		[TestMethod]
		public void test_match_words_among_sentence()
		{
			String line = "This. is a /string--test";
			String[] words = DevRegex.GetMatchedStringArray(line, DevRegex.MatchWord);
			foreach (String s in words)
				Console.WriteLine(s);
		}

		[TestMethod]
		public void test_match_chinese_words_among_sentence()
		{
			String line = "我. 在/这里--测试";
			String[] words = DevRegex.GetMatchedStringArray(line, DevRegex.MatchCNWord);
			foreach (String s in words)
				Console.WriteLine(s);
		}


	}
}
